package org.example.model;

/**
 * 监控指标类
 */
public class MonitoringMetrics {
    private final long totalRequests;
    private final long activeSessions;
    private final long memoryUsage;
    private final double responseTime;

    public MonitoringMetrics(long totalRequests, long activeSessions,
                             long memoryUsage, double responseTime) {
        this.totalRequests = totalRequests;
        this.activeSessions = activeSessions;
        this.memoryUsage = memoryUsage;
        this.responseTime = responseTime;
    }

    // getters
    public long getTotalRequests() {
        return totalRequests;
    }

    public long getActiveSessions() {
        return activeSessions;
    }

    public long getMemoryUsage() {
        return memoryUsage;
    }

    public double getResponseTime() {
        return responseTime;
    }
}
